﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WhatCatch.Core
{
    public class CrawlerConfig
    {
        /// <summary>
        /// 任务线程数
        /// </summary>
        public int TaskThreadNum { get; set; } = 1;
        public int DetailTaskThreadNum { get; set; } = 1;

        /// <summary>
        /// 列表位置xpath
        /// </summary>
        public string ListXPath { get; set; }
        /// <summary>
        /// 列表项xpath
        /// </summary>
        public string ListItemXPath { get; set; }
        /// <summary>
        /// 列表项url位置xpath
        /// </summary>
        public string ListItemUrlXPath { get; set; }
        /// <summary>
        /// 分页位置xpath
        /// </summary>
        public string PageXPath { get; set; }
        /// <summary>
        /// 分页项xpath
        /// </summary>
        public string PageItemXPath { get; set; }
        /// <summary>
        /// 分页项url位置xpath
        /// </summary>
        public string PageItemUrlXPath { get; set; }
        /// <summary>
        /// 明细位置xpath
        /// </summary>
        public string DetailXPath { get; set; }
        /// <summary>
        /// 明细标题xpath
        /// </summary>
        public string DetailTitleXPath { get; set; }
    }
}
